package com.example.boardcastbestpractice;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;

public class MainActivity extends BaseActivity{
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_activity);
		
		Button forceOffline = (Button)findViewById(R.id.force_offline);
		forceOffline.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				Intent intent = new Intent("com.example.boardcastbestpractice.FORCE_OFFLINE");
				sendBroadcast(intent);
			}
		});
	}

}
